﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.RbacData.Infrastructure.Migrations
{
    public partial class 养殖保健信息和养殖企业信息 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "FarmingCorporates",
                columns: table => new
                {
                    CorporateId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FarmingAddtrss = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FarmingPerson = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FarmingNum = table.Column<int>(type: "int", nullable: false),
                    ProductId = table.Column<int>(type: "int", nullable: false),
                    Creatime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FarmingCorporates", x => x.CorporateId);
                });

            migrationBuilder.CreateTable(
                name: "FarmingHealthcares",
                columns: table => new
                {
                    HealthcareId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FarmingDays = table.Column<int>(type: "int", nullable: false),
                    HealthcareApproach = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HealthcareMethod = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ProductId = table.Column<int>(type: "int", nullable: false),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FarmingHealthcares", x => x.HealthcareId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FarmingCorporates");

            migrationBuilder.DropTable(
                name: "FarmingHealthcares");
        }
    }
}
